[SECTION .data]

[SECTION .text]
[BITS 16]
global _start
_start:
    ; 设置屏幕模式为文本模式，清除屏幕

    mov ax, 3
    int 0x10

    mov si, jump_to_setup
    call print

    jmp $


; 如何调用
; mov     si, msg   ; 1 传入字符串
; call    print     ; 2 调用
print:
    mov ah, 0x0e
    mov bh, 0
    mov bl, 0x01
.loop:
    mov al, [si]
    cmp al, 0
    jz  .done
    int 0x10

    inc si
    jmp .loop

.done:
    ret

jump_to_setup:
    db "jump to setup...",10, 13, 0

times 510- ($ - $$) db 0
db 0x55, 0xaa